import configUrls from "../urls/login";
import { get, post, login } from "../axios";
export default {
  //chiese2pinyin
  //登录-转译密码
  fetchEncryptPwd(data: object) {
    return get(configUrls.encryptPwd, data);
  },
  //登录-登录获取token
  fetchDoLogin(data: object) {
    return login(configUrls.doLogin, data);
  },
  //登录-获取图形验证码
  fetchVerificationCode(data: object) {
    return get(configUrls.verificationCode, data);
  },
  //登录-退出登录
  fetchLogout(data: object) {
    return post(configUrls.logout, data);
  },
  //获取个人中心
  fetchUserInfo(data: object) {
    return get(configUrls.userInfo, data);
  },
  //修改个人中心
  fetchPhoneAndEmail(data: object) {
    return post(configUrls.changePhoneAndEmail, data);
  },
  //修改密码
  fetchPasswordChange(data: object) {
    return post(configUrls.passwordChange, data);
  },
  //用户重置密码
  fetchUserResetpwd(data: object) {
    return post(configUrls.userResetpwd, data);
  },
  //右上角切换--站群列表
  fetchStationGroupList(data: object) {
    return get(configUrls.stationGroupList, data);
  },
  //获取登录页背景图、ico图、logo图
  loginPageSetUp() {
    return get(configUrls.loginPageSetUp, {});
  },
  //用户是否重复登录
  userRepetLogin (data: object) {
    return get(configUrls.userRepetLogin, data);
  },
};
